package com.ace.log.printer

import android.util.Log
import com.ace.log.LogLevel
import com.ace.log.decorator.BorderDecorator
import com.ace.log.decorator.IDecorator


class ConsolePrinter(override val decorator: IDecorator = BorderDecorator) : IPrinter {
    override fun printLog(logLevel: LogLevel, tag: String, msg: String) {
        when (logLevel) {
             LogLevel.DEBUG -> Log.d(tag, msg)
             LogLevel.ERROR -> Log.e(tag, msg)
             LogLevel.INFO -> Log.i(tag, msg)
             LogLevel.WARN -> Log.w(tag, msg)
        }
    }
}